use serde::{Deserialize, Serialize};

#[derive(Deserialize)]
pub struct Info {
    pub tiles: String,
    pub z: i32,
    pub x: i32,
    pub y: i32,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Config {
    pub tiles: Vec<Tiles>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Tiles {
    pub name: String,
    pub path: String,
    #[serde(rename(serialize = "type", deserialize = "type"))]
    pub ttype: String,
    pub map_type: String,
}
